const fs= require("fs");
const path=require("path");

let filePath=path.join(__dirname,"test.txt");

 fs.writeFile(filePath,"wjh",(err)=>{
    if (err){
        console.log(err);
    }else{
        console.log("done")
    }
 })